﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DataAccessLayer.RoomType>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">ID</div>
        <div class="display-field"><%: Model.ID %></div>
        
        <div class="display-label">RoomTypeName</div>
        <div class="display-field"><%: Model.RoomTypeName %></div>
        
        <div class="display-label">NumberOfBed</div>
        <div class="display-field"><%: Model.NumberOfBed %></div>
        
        <div class="display-label">NumberOfRoom</div>
        <div class="display-field"><%: Model.NumberOfRoom %></div>
        
        <div class="display-label">Price</div>
        <div class="display-field"><%: Model.Price %></div>
        
        <div class="display-label">Description</div>
        <div class="display-field"><%: Model.Description %></div>
        
        <div class="display-label">ImageFolderPath</div>
        <div class="display-field"><img src="<%: Model.ImageFolderPath %>" class="room-type-img"/></div>
        
    </fieldset>
    <p>
        <%= String.Format("<a href=\"{0}\">{1}</a>", "http://localhost:9999/SelectDate.aspx?roomTypeID=" + Model.ID, "Reservation")%>
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

